[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
FT_ESCCODE()
Convert Lotus style escape codes
------------------------------------------------------------------------------
Syntax
FT_ESCCODE( <cASCII> ) -> <cPrinterFormat>
Arguments
<cASCII> is the ASCII representation of the printer control
codes in Lotus 123 format (e.g. "\027E" for Chr(27)+"E")
"\nnn" will be converted to Chr(nnn)
"\\" will be converted to "\"
Returns
The binary version of an ASCII coded printer setup string.
Description
This function is useful for allowing the user to enter printer
control codes in Lotus-style ASCII format, and then having
this function convert that code to the format that the printer
needs to receive.
Examples
cSetup = "\015" // default = Epson compressed print
UserInput( @cSetup ) // Let user modify setup code
SET DEVICE TO PRINT // get ready to print
?? FT_ESCCODE( cSetup ) // Output the converted code
Source: PRTESC.PRG
Author: Steven Tyrakowski
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson